package com.exam.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.exam.domain.enums.QuestionType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(description = "题目信息")
public class Question {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("编号")
    private Integer id;

    @ApiModelProperty("题干")
    private String stem;

    @ApiModelProperty("答案")
    private String answer;

    @TableField("create_time")
    @ApiModelProperty("题目创建时间")
    private Date createTime;

    @ApiModelProperty("富文本地址")
    private String url;

    @ApiModelProperty("题型")
    private String type;

    @TableField("knowledge_point_id")
    @ApiModelProperty("题目所属知识点id")
    private Integer knowledgePointId;

    @TableField("teacher_id")
    @ApiModelProperty("题目所属教师id")
    private String teacherId;

    @TableField(exist = false)
    private KnowledgePoint knowledgePoint;

    @TableField(exist = false)
    private Teacher teacher;
}
